package com.dong.jdk8.supplier;

import java.util.function.Supplier;

/**
 * Created by jianyang206881 on 2017/9/25.
 */
public class Person {
    public static Person create(final Supplier<Person> supplier) {
        return supplier.get();
    }

    public static void head(final Person person) {
        System.out.println( "I'm head:" + person);
    }

    public void body(final Person person) {
        System.out.println( "I'm body:" + person);
    }

    public void foot() {
        System.out.println( "I'm foot:" + this);
    }
}
